<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">

    <link rel="stylesheet" href="backgroundAnimation.css">
    <title>学生登录</title>

    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .login-container h2 {
            margin-bottom: 20px;
            color: #333;
        }
        .login-container input[type="text"],
        .login-container input[type="password"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .button-container {
            display: flex;
            justify-content: space-between;
            width: 100%;
        }
        .btn-register {
            outline: none;
            background-color: #ff719a;
            color: #fff;
            border: none;
            width: 100px;
            padding: 10px 15px;
            border-radius: 3px;
            font-size: 15px;
            cursor: pointer;
            transition: 0.25s;
        }
        .btn-register:hover {
            background-color: #ff5c8a;
        }
    </style>
</head>
<body>
<!-- 背景方块 -->
<ul class="bg-squares">
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
</ul>

<div class="container">

    <!-- 登录表单 -->
    <form action="login" method="post">
        <div class="from">
            <input type="text" name="studentId" placeholder="您的账号">
            <input type="password" name="password" placeholder="您的密码">
            <div class="button-container">
                <button type="button" class="btn-register" onclick="window.location.href='register.jsp'">注册</button>
                <button class="btn-login">登录</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>